<%-- 
    Document   : nuevo
    Created on : 13/11/2009, 08:34:54 PM
    Author     : ADMINISTRADOR
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
<%@taglib prefix="r" uri="http://richfaces.ajax4jsf.org/rich" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<script language="javascript" src="../js/funciones.js"></script>
<link href="/colegiatura/Estilos/estilosEsymons.css" rel="stylesheet" type="text/css" />

<f:view>
<h:form>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="25" class="texto3" align="left">
                <h:outputLabel value=" Colegiado en Comité Local" />  </td>
          </tr>
           <tr><td height="20">
     <a4j:outputPanel ajaxRendered="true">
    <h:messages id="lblMessages" styleClass="messages" infoClass="infoClass" errorClass="errorClass"
                warnClass="warnClass" showDetail="true" errorStyle="color:red;"
                warnStyle="color:green;" infoStyle="color:black;" fatalStyle="color:black"/>
    </a4j:outputPanel>
      </td>
  </tr>
          <tr><td>
          <fieldset>
              <legend>Buscar Colegiado</legend>
              <table width="100%" border="0">
              <tr>
                <td width="189" height="25">&nbsp;</td>
                <td width="159"><h:outputLabel value="Codigo Cip: " styleClass="texto22" /></td>
                <td><h:inputText value="#{colegiadoComiteLocalController.codigoCIP}" styleClass="fondo012" /> 
				<h:outputLabel value="  "  />
				<h:commandButton action="#{colegiadoComiteLocalController.buscaPorCip}" value="Buscar" styleClass="enlace9" /></td>
                <td width="193">&nbsp;</td>
                <td width="42">&nbsp;</td>
              </tr>
              </table>
          </fieldset>
            </td>
          </tr>
          <h:panelGroup rendered="#{colegiadoComiteLocalController.bandera==true}">
          <tr>
            <td>
        <fieldset>
            <legend>Datos Colegiado</legend>
            <table width="100%" border="0">
          <tr>
            <td width="15%" height="25">&nbsp;</td>
            <td width="18%"><h:outputLabel value="Nombre :" styleClass="texto22" /></td>
            <td colspan="3"><h:outputLabel value="#{colegiadoComiteLocalController.colegiado.personaNatural.nombreCompleto}"  styleClass="texto20"  /></td>
            <td width="26%">&nbsp;</td>
          </tr>
          <tr>
            <td height="25">&nbsp;</td>
            <td><h:outputLabel value="Comité Local :" styleClass="texto22" /></td>
            <td colspan="3">
                <h:selectOneMenu value="#{colegiadoComiteLocalController.colegiadoComite.cloCodigo}" styleClass="fondo012">
                <f:selectItem itemLabel="------Seleccionar------" />
                <f:selectItems value="#{comiteController.selectListaItemComite}" />
            </h:selectOneMenu></td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td height="25">&nbsp;</td>
            <td><h:outputLabel  value="Fecha Aporte :" styleClass="texto22" /></td>
            <td width="19%">
                <r:calendar value="#{colegiadoComiteLocalController.colegiadoComite.ccofechaAporte}"
                        datePattern="dd/MM/yyyy" cellWidth="15" styleClass="cajaCentrada" inputClass="cajaCentrada" />
                <%--t:inputCalendar value="#{colegiadoComiteLocalController.colegiadoComite.ccofechaAporte}" renderPopupButtonAsImage="true" renderAsPopup="true"
                 popupDateFormat="dd/MM/yyyy"  popupTodayString="Hoy día es:"  styleClass="fondo012"  /--%></td>
            <td width="10%">&nbsp;</td>
            <td width="12%">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td height="25">&nbsp;</td>
            <td><h:outputLabel value="Fecha Incorporación :" styleClass="texto22" /></td>
            <td><r:calendar value="#{colegiadoComiteLocalController.colegiadoComite.ccofechaIncorporacion}"
                        datePattern="dd/MM/yyyy" cellWidth="15" styleClass="cajaCentrada" inputClass="cajaCentrada" />
                <%--t:inputCalendar value="#{colegiadoComiteLocalController.colegiadoComite.ccofechaIncorporacion}" renderPopupButtonAsImage="true" renderAsPopup="true"
                 popupDateFormat="dd/MM/yyyy"  popupTodayString="Hoy día es:"  styleClass="fondo012"  /--%></td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td height="25" colspan="6">&nbsp;</td>
          </tr>
          <tr>
            <td height="25">&nbsp;</td>
            <td>&nbsp;</td>
            <td colspan="3" align="center">
			<h:commandButton  action="#{colegiadoComiteLocalController.guardarColegiadoComite}" value="Guardar" styleClass="enlace9" />            <h:outputLabel value="  " />
			  <h:commandButton action="#{colegiadoComiteLocalController.retornar}" value="Cancelar" styleClass="enlace9" /></td>
            <td>&nbsp;</td>
          </tr>
                </table>
            </fieldset>
            </td>
          </tr>
          </h:panelGroup>
    </table>
</h:form>
</f:view>

